﻿@model CloudStorageLight.Core.IWorkTask

@{
    ViewBag.Title = "Login";
    Layout = "~/Views/Shared/_LayoutCloudStorage.cshtml";
}

<header class="nrm nlm">

    <div class="clearfix" id="header-cont">
        <div class="place-right">
            <div class="margin10">
                <a id="home" href="@Url.Action("Index", "Home", new { id="/" })"><i class="icon-exit" title="home" style="background:white;color:blue;padding:10px;border-radius:50%"></i></a>
            </div>
        </div>
        <div class="place-left margin10">
            <nav class="horizontal-menu">
                <ul>
                    @Html.Partial("_HomeCommand")
                </ul>
            </nav>
        </div>
    </div>
</header>
<div>
    @using (Html.BeginForm())
    {
        @Html.ValidationSummary(true, "", new { @class = "text-danger" })

    <div class="container">

        <div style="margin:20px;">
            <div class="row-same-height">
                <span class="col-md-2 control-label">@(CloudStorageLight.Core.Web.ViewMessages.MsgEmail)</span>
                <div class="col-md-4">
                    @Html.TextBox("mailAddress", "", new { @class = "form-control" })
                    @Html.ValidationMessage("mailAddress", "", new { @class = "text-danger" })
                </div>
                <div class="col-md-6" style="font-size:small;">
                    @(CloudStorageLight.Core.Web.ViewMessages.MsgReceiveMailAddress)
                </div>
            </div>
            @if (!string.IsNullOrEmpty(Model.GetPassword()))
            {
                <div class="row-same-height">
                    <span class="col-md-2 control-label">@(CloudStorageLight.Core.Web.ViewMessages.MsgPassword)</span>
                    <div class="col-md-4">
                        @Html.Password("password", "", new { @class = "form-control" })
                        @Html.ValidationMessage("password", "", new { @class = "text-danger" })
                    </div>
                </div>
            }
            <div class="row-same-height">
                <div class="col-md-2">
                </div>
                <div class="col-md-4">
                    <button id="login" type="submit" class="btn btn-default">
                        @CloudStorageLight.Core.Web.ViewMessages.MsgExecute
                    </button>
                </div>
            </div>
            <hr />
            <div class="row-same-height">
                <div class="col-md-2">
                </div>
                <div class="col-md-10">
                    @(CloudStorageLight.Core.Web.ViewMessages.MsgLoginAccountGuid)
                </div>
            </div>
            <div class="row-same-height">
                <div class="col-md-2">
                </div>
                <div class="col-md-10">
                    <div>
                        <a class="button" href="@(Url.Action("Login", "Account", new { returnUrl = Request.Url.AbsolutePath }))">@(CloudStorageLight.Core.Web.ViewMessages.CmdAccountLogin)</a>
                    </div>
                </div>
            </div>

        </div>
    </div>
    }
</div>





